A random variable is function from the sample space S to the set of all real numbers R. we can denote such function as X(s):S→R
- Discrete(countable)
- Continuous(Uncountable)
- Joint
For each type random variables, we conclude serval distribution where probability distribution depicts the expected outcomes of given random.
Intro to Discrete
A random variable is discrete if there is a finite of countable sequences of distinct events xi and corresponding sequence pi of real numbers satisfied ∑ipi=1 and P(X=xi)=pi
- The probability function of discrete random variable called Probability Mass Function(PMF) write as pX:R→[0,1],pX(x)=P(X=x)
- For the second equation, firstly, consider n→∞limP(X=x)=n→∞limx!n(n−1)⋯(n−x+1)θx(1−θ)n−x , where θ=nλ that is we can rearrange to x!nxn(n−1)⋯(n−x+1)(λx)=nxn(n−1)⋯(n−x+1)x!λx. And we can find out that n→∞limnxn(n−1)⋯(n−x+1)x!λx=x!λx. That is, we have n→∞limP(X=x)=n→∞limx!λx(1−nλ)n−x. Since n→∞lim(1−nλ)−x=1 and n→∞lim(1−nλ)n=e−λ=exp(−λ), that is, we have equation x!λxexp(−λ)
Intro to Continuous
A random variable X is continuous if P(X=x)=0,∀x∈R
-
The probability function of continuous random variable called Probability Density Function(PDF) which write as f(x)=Δx→0limΔxP(x<X<x+Δx) and ∫−∞∞f(x)dx=1
- A density function ⟺∫−∞∞f(x)dx=1∧∀x∈R1,f(x)≥0
-
The probability of a interval (a,b) is the same as [a,b] which both are P(a≤x≤b)=∫abf(x)dx
JOINT Random Vairable
Let X,Y be random variables, the joint distribution of X and Y is the collection of probabilities P((X,Y)∈B),∀B⊆R2
We also have CDF represent for it, where FX,Y(x,y)=P(X≤x,Y≤y)=P(X≤x∩Y≤y)
For a<X≤b,c<Y≤d, the continuous random variables' probability of joint is P(a<X≤b,c<Y≤d)=FX,Y(b,d)−FX,Y(b,c)−FX,Y(a,d)+FX,Y(a,c), the distinct random variables' probability is pX,Y(x,y)=P(X=x,Y=y)
Sometime it is too complicated to get the result, so that we have marginal distribution where the marginal distribution of X is FX(x)=y→∞limFX,Y(x,y) , similarly, the marginal distribution of Y is FY(y)=x→∞limFX,Y(x,y)
according to the CDF and the marginal CDF, we can write the probability function as ∫∫fx,y(x,y)dxdy=1 and the marginal pf of X is fX(x)=∫yfX,Y(x,y)dy and the marginal pf of Y is fY(y)=∫XfX,Y(x,y)dx
- if X,Y are independent, then fX,Y(x,y)=fX(x)fY(y)
Order Statistics
Some order statistics example:
e.g. Since we want obtain more statistics, we need to order. Let X1,…,Xn be i.i.d random variables, let X(1),…,x(n) ne ordered random variable from X1,…,Xn. Then X(1) is the smallest and X(n) is the largest.
- FX(n)(x)=P(X(n)≤x)=P(X(1)≤x,X(2)≤x,…,X(n)≤x)=P(X1≤x,…,Xn≤x)=∏iP(Xi≤x)=[FX1(x)]n since independent and largest less x so that smallest less x so that all equal to smallest
- fX(n)(x)=dxdFX(n)(x)=n[FX1(x)]n−1fX1(x)
- FX(1)(x)=P(X(1)≤x)=1−P(X(1)>x)=1−P(X(1)>x,X(2)>x,…,X(n)>x)=P(X1>x,…,Xn>x)=1−∏iP(Xi>x)=1−[1−FX1(x)]n
- fX(1)(x)=dxdFX(1)(x)=n[1−FX1(x)]n−1fX1(x)
e.g. X1,…,Xn∼i.i.dU(0,1), then fX(1)(X)=n(1−x)n−1=Γ(n)Γ(1)Γ(n+1)x1−1(1−x)n−1,fX(n)(X)=n(x)n−1=Γ(n)Γ(1)Γ(n+1)xn−1(1−x)1−1 so that X(n)∼Beta(n,1) and X(1)∼Beta(1,n)
Events
Tail Events: Let assume A1,…,An⊂S be a sequence of events. Then define the tail event n→∞limsupAn=⋂n=1∞⋃k=n∞Ak={An i.o} and n→∞liminfAk=⋃n=1∞⋂k=n∞Ak={An a.a}
- P({An i.o. })=1−P({Anc a.a. })
- i.o. stand for infinite often, a.a stand for almost always
- always > almost always > infinite often > almost never > never
- i.o. stand for this event infinite often happen, a.a. stand for this event almost always happen
Borel-Cantelli Lemma:
- ∑n=1∞P(An)<∞⟹P(An i.o)=0. Then ∑n=1∞P(∣Xn−X∣>ϵ)<∞⟹Xn→a.s.X but converse is not true.
- Assume ∑n=1∞P(An)≤∞
- P(A)=P(⋂n=1∞⋃m=n∞Am)=n→∞limP(⋃m=n∞Am)≤n→∞lim∑m=n∞P(Am)=0 by drecreasing sequence of events and continunity from above.
- ∑n=1∞P(An)=∞ and all An are independent ⟹P(An i.o)=1
- 1−P(An i.o)=P(Anc a.a)=P(⋃n=1∞⋂m=n∞Amc)=n→∞limP(⋂m=n∞Amc)=n→∞limk→∞limP(⋂m=nkAmc)=n→∞limk→∞lim∏m=nkP(Amc)=n→∞limk→∞lim∏m=nk(1−P(An))≤n→∞limk→∞lim∏m=nke−P(Am)≤n→∞lime−∑m=n∞P(Am)≤e−∞=0
- that is, P(An i.o)=1